package com.xinzhi.seckill.vo;

import com.xinzhi.seckill.validation.IsMoblie;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 *接受Login传输来的对象
 */
@Data
public class LoginVo {
    @NotNull
    @IsMoblie
    //手机号
    private String mobile;

    @NotNull
    //密码
    @Length(min = 32)
    private String password;
}
